package com.sensePlusVR.widget.dialog;

import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.sensePlusVR.main.R;
import com.sensePlusVR.utils.MyDialogUtil;

@SuppressWarnings("unused")
public class MemoryLessDialog extends BaseDialog implements View.OnClickListener{
	private static final String TAG = MemoryLessDialog.class.getSimpleName();
	private Context context;
	private TextView memory_demand_size_tv;
	private TextView memory_remain_size_tv;
	private ImageView memory_del_iv;
	
	public MemoryLessDialog(Context context) {
		super(context,R.style.FullScreen_Dialog_Half_Tran);
		this.context = context;
		init();
	}

	private void init() {}
	
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.dialog_memory_less);
		
		memory_demand_size_tv = (TextView) findViewById(R.id.memory_demand_size_tv);
		memory_remain_size_tv = (TextView) findViewById(R.id.memory_remain_size_tv);
		memory_del_iv = (ImageView) findViewById(R.id.memory_del_iv);
		
		memory_del_iv.setOnClickListener(this);
		
	}
	
	@Override
	public void show() {
		super.show();
		MyDialogUtil.setDialogFullScreen(context, this);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.memory_del_iv:
			dismiss();
			break;
		}
		
	}

}
